if not exists (select * from sys.tables where name = 'x02_prot')	begin		CREATE TABLE [dbo].[x02_prot](			[X02_data] [date] NOT NULL,			[X02_kodas_ps] [char](12) NOT NULL,			[X02_kaina] [numeric](8,3)NOT NULL						) 	endELSE	begin		if exists(select * from sys.columns 					where Name = N'X02_kaina' and 					Object_ID = Object_ID(N'x02_prot') and scale=2)		begin			ALTER TABLE dbo.x02_prot 			ALTER COLUMN [X02_kaina] [numeric] (8,3) NOT NULL		end				end		IF NOT EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[dbo].[x02_prot]') AND name = N'x02idx')CREATE NONCLUSTERED INDEX [x02idx] ON [dbo].[x02_prot] (	[X02_data] ASC)WITH (STATISTICS_NORECOMPUTE  = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]